home *** CD-ROM | disk | FTP | other *** search
- !
- ! Default Fortune Teller script..
- !
- ! (c) DC Software, 1992
- !
-
- !------------------------------------------------------------------------!
- :@TALK ! Talk to the character !
- !------------------------------------------------------------------------!
-
- ! First, say hello.. !
- if NPC.V0 > 0 then
- writeln( "Hello ", player.name, ". What brings you back?" );
- else
- writeln( "How may I help you?" );
- endif;
-
- ! Now, set some variables..
- NPC.V0 = 1; ! From know on, remember we've been here
-
- L1 = select$( "Tell Fortune", npc.value, "Leave", -1 );
-
- if L1 <> 0 then
- if NPC.V0 > 0 then
- writeln( "As you wish.." );
- else
- writeln( "Fine, but you may live to regret it.." );
- endif;
- STOP;
- endif;
-
- if npc.value > group.gold then
- writeln( "You don't have enough money.." );
- STOP;
- endif;
-
- dec( group.gold, npc.value );
- readtext( npc.text );
- STOP;
-
-